﻿using System.Web.Mvc;
using FrameWork.Web.Attribute;
using MyDb.DoMain.Interface;

namespace FrameWork.Web
{
    [HandlerLogin]
    [HandlerAuthorize]
    public class AdminControllerBase: Controller
    {
        /// <summary>
        /// 记录日志service
        /// </summary>
        protected ILogService LogService => ServiceHelper.CreateService<ILogService>();

        /// <summary>
        /// 用户操作service
        /// </summary>
        protected IUserService UserService => ServiceHelper.CreateService<IUserService>();

        /// <summary>
        /// 获取基础数据
        /// </summary>
        protected IBaseDataService BaseDataService => ServiceHelper.CreateService<IBaseDataService>();
    }
}
